print 'Simple Dictionary'
dic  = {
    "good" : "tot",
    "bad" : "xau",
    "I" : "toi",
    "you" : "ban"
    }
def search_tu():
    word  = raw_input("Nhap Tu: ")
    if str(word) in dic:
        print dic[str(word)]
    else:
        print "Khong ton tai dinh nghia cua tu nay"
        nghia = raw_input("Nhap dinh nghia: ")
        dic[word] = nghia
search_tu()    
def chay():
    opt = raw_input("Tiep tuc dung chuong trinh? (Y/N): ")
    if opt == "Y" or opt == "y" or opt == "Yes" or opt == "yes" or opt == "YES":
        search_tu()
        chay()
    elif opt == "N" or opt == "n" or opt == "No" or opt == "no" or opt == "NO":
        exit
    else: 
        chay()
        
chay()

    